package cn.dankal.basiclib.pojo;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

public class CreateOrderPreviewEntity implements Serializable {

    private AddressEntity userAddress;
    private String state;
    private String uuid;
    private List<ProductDetailItemEntity> orderItemList;
    private String originPrice;
    private double discountAmount;
    private String discountedUnitPrice;
    private String discountedPrice;
    private double scoreDeductAmount;
    private String shippingPrice;
    private double needPay;
    private int usedScore;
    private String createdDatetime;
    private String modifiedDatetime;
    private String paidDatetime;
    private String shippedDatetime;
    private String receivedDatetime;
    private String username;
    private String phone;
    private String payChannel;
    private String expressCorpCode;
    private String expressNum;
    private String expireDatetime;
    private String userMessage;
    private String expressCorpName;
    private List<LogisticsEntity> operationRecordList;
    private AfterSaleApplyBean afterSaleApply;


    public List<LogisticsEntity> getOperationRecordList() {
        return operationRecordList;
    }

    public void setOperationRecordList(List<LogisticsEntity> operationRecordList) {
        this.operationRecordList = operationRecordList;
    }

    public AfterSaleApplyBean getAfterSaleApply() {
        return afterSaleApply;
    }

    public void setAfterSaleApply(AfterSaleApplyBean afterSaleApply) {
        this.afterSaleApply = afterSaleApply;
    }

    public AddressEntity getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(AddressEntity userAddress) {
        this.userAddress = userAddress;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public List<ProductDetailItemEntity> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<ProductDetailItemEntity> orderItemList) {
        this.orderItemList = orderItemList;
    }

    public String getOriginPrice() {
        return originPrice;
    }

    public void setOriginPrice(String originPrice) {
        this.originPrice = originPrice;
    }

    public double getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(double discountAmount) {
        this.discountAmount = discountAmount;
    }

    public String getDiscountedUnitPrice() {
        if(TextUtils.isEmpty(discountedUnitPrice)){
            return  "0.0";
        }
        return discountedUnitPrice;
    }

    public void setDiscountedUnitPrice(String discountedUnitPrice) {
        this.discountedUnitPrice = discountedUnitPrice;
    }

    public String getDiscountedPrice() {
        if(TextUtils.isEmpty(discountedPrice)){
           return  "0.0";
        }
        return discountedPrice;
    }

    public void setDiscountedPrice(String discountedPrice) {
        this.discountedPrice = discountedPrice;
    }

    public double getScoreDeductAmount() {
        return scoreDeductAmount;
    }

    public void setScoreDeductAmount(double scoreDeductAmount) {
        this.scoreDeductAmount = scoreDeductAmount;
    }

    public String getShippingPrice() {
        if(TextUtils.isEmpty(shippingPrice)){
            return  "0.0";
        }
        return shippingPrice;
    }

    public void setShippingPrice(String shippingPrice) {
        this.shippingPrice = shippingPrice;
    }

    public double getNeedPay() {
        return needPay;
    }

    public void setNeedPay(double needPay) {
        this.needPay = needPay;
    }

    public int getUsedScore() {
        return usedScore;
    }

    public void setUsedScore(int usedScore) {
        this.usedScore = usedScore;
    }

    public String getCreatedDatetime() {
        if (TextUtils.isEmpty(createdDatetime)) {
            return "";
        }
        return createdDatetime;
    }

    public void setCreatedDatetime(String createdDatetime) {
        this.createdDatetime = createdDatetime;
    }

    public String getModifiedDatetime() {
        if (TextUtils.isEmpty(modifiedDatetime)) {
            return "";
        }
        return modifiedDatetime;
    }

    public void setModifiedDatetime(String modifiedDatetime) {
        this.modifiedDatetime = modifiedDatetime;
    }

    public String getPaidDatetime() {
        if (TextUtils.isEmpty(paidDatetime)) {
            return "";
        }
        return paidDatetime;
    }

    public void setPaidDatetime(String paidDatetime) {
        this.paidDatetime = paidDatetime;
    }

    public String getShippedDatetime() {
        if (TextUtils.isEmpty(shippedDatetime)) {
            return "";
        }
        return shippedDatetime;
    }

    public void setShippedDatetime(String shippedDatetime) {
        this.shippedDatetime = shippedDatetime;
    }

    public String getReceivedDatetime() {
        if (TextUtils.isEmpty(receivedDatetime)) {
            return "";
        }
        return receivedDatetime;
    }

    public void setReceivedDatetime(String receivedDatetime) {
        this.receivedDatetime = receivedDatetime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(String payChannel) {
        this.payChannel = payChannel;
    }

    public String getExpressCorpCode() {
        return expressCorpCode;
    }

    public void setExpressCorpCode(String expressCorpCode) {
        this.expressCorpCode = expressCorpCode;
    }

    public String getExpressNum() {
        return expressNum;
    }

    public void setExpressNum(String expressNum) {
        this.expressNum = expressNum;
    }

    public String getExpireDatetime() {
        return expireDatetime;
    }

    public void setExpireDatetime(String expireDatetime) {
        this.expireDatetime = expireDatetime;
    }

    public String getUserMessage() {
        return userMessage;
    }

    public void setUserMessage(String userMessage) {
        this.userMessage = userMessage;
    }

    public String getExpressCorpName() {
        return expressCorpName;
    }

    public void setExpressCorpName(String expressCorpName) {
        this.expressCorpName = expressCorpName;
    }
}
